<template>
  <div class="basePrivilege">
    <div class="btns">
    <el-button type=primary size="small">新增</el-button>
    </div>  
  <el-table size="small" :data="basePrivileges">
    <el-table-column type="index" index="1" label="序号"></el-table-column>
    <el-table-column label="姓名" prop="name" align="center"></el-table-column>
    <el-table-column label="描述" prop="description" align="center"></el-table-column>
    <el-table-column label="路径" prop="route" align="center"></el-table-column>
    <el-table-column label="路径名字" prop="routeName" align="center"></el-table-column>
    <el-table-column label="类型" prop="type" align="center"></el-table-column>
    <el-table-column label="图标" prop="icon" align="center"></el-table-column>
    <el-table-column label="隐藏" prop="hidden" align="center"></el-table-column>
    <el-table-column label="数字" prop="num" align="center"></el-table-column>
    <el-table-column label="上级id" prop="parentId" align="center"></el-table-column>
    </el-table>
  </div>
</template>



<script>
import{get,post}from '@/utils/request'
export default {
    data(){
        return{
            basePrivileges:[]
        }
    },
    created(){
        this.loadbasePrivilege();

    },
    methods:{
        loadbasePrivilege(){
            let url='http://localhost:8888/base_privilege/query'
            get(url).then((resp)=>{
                this.basePrivileges=resp.data;
         
            })
        }
    }

}
</script>

<style scoped>

</style>
